package com.css.fxfzcpxx.modules.certificateManage.service;

import com.css.fxfzcpxx.base.attachment.entity.AttachmentInfoEntity;
import com.css.fxfzcpxx.base.response.RestResponse;
import com.css.fxfzcpxx.modules.certificateManage.entity.CertificateManage;
import com.css.fxfzcpxx.modules.certificateManage.entity.CertificateRule;
import com.css.fxfzcpxx.modules.certificateManage.entity.UserCertificate;
import com.css.fxfzcpxx.modules.certificateManage.vo.CertificateRuleVo;
import com.css.fxfzcpxx.modules.certificateManage.vo.CertificateVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface CertificateManageService {





    AttachmentInfoEntity preview(String fileName,CertificateVo certificateVo) throws IOException;

    RestResponse previewDel(String id);

    List<AttachmentInfoEntity> getCertificateFile();

    RestResponse save(CertificateManage certificateManage);

    void update(CertificateManage certificateManage)throws IOException;

    List<CertificateManage> queryAll();

    void updateRule(List<CertificateRule> ruleList);

    List<CertificateRuleVo> queryRule();

    String getCertificateId(String excellentCertificateId, String userID);

    List<UserCertificate> getUserCertificate();
}
